import Vue from 'vue'
import Router from 'vue-router'
import mainpage from '@/pages/mainpage'
import detialpage from '@/pages/detialpage'
import addnewPage from '@/pages/addnewPage'
import viedoPage from '@/pages/viedoPage'


Vue.use(Router)

export default new Router({
    mode: 'history',
    base: '/faq/',
    routes: [
        {
            path: '/',
            name: 'mainpage',
            component: mainpage
        },
        {
            path: '/detialpage',
            name: 'detialpage',
            component: detialpage
        },
        {
            path: '/addnewPage',
            name: 'addnewPage',
            component: addnewPage
        },
        {
            path: '/viedoPage',
            name: 'viedoPage',
            component: viedoPage
        }
    ]
})
